import request from '@/utils/request'

// 查询库位管理列表
export function listStorManagement(query) {
  return request({
    url: '/basicData/storManagement/list',
    method: 'get',
    params: query
  })
}

// 查询库位管理详细
export function getStorManagement(storManagementId) {
  return request({
    url: '/basicData/storManagement/' + storManagementId,
    method: 'get'
  })
}

// 新增库位管理
export function addStorManagement(data) {
  return request({
    url: '/basicData/storManagement',
    method: 'post',
    data: data
  })
}

// 修改库位管理
export function updateStorManagement(data) {
  return request({
    url: '/basicData/storManagement',
    method: 'put',
    data: data
  })
}

// 删除库位管理
export function delStorManagement(storManagementId) {
  return request({
    url: '/basicData/storManagement/' + storManagementId,
    method: 'delete'
  })
}
